//
//  Config.swift
//  JiaoZiTaxi
//
//  Created by Hu Gang on 2022/9/13.
//

import Foundation
import os

class Singleton {

    var driverOpenId : String?

    var openId: String {
      get {
         if let openIdValue =  UserDefaults.standard.string(forKey: "openId") {
            return openIdValue
         } else {
            return ""
         }
      }
      set {
         UserDefaults.standard.set(newValue, forKey: "openId")
      }
   }

    static let shared : Singleton = {
        let instance = Singleton()
        
        return instance
    }()
}


